<form class="form-horizontal pd10" id="apply_scholarship_text"  <if condition="$apply['id']">style="display:none"</if>>	
	<div class="form-group">
		 
		<div class="col-sm-12" ><{:dict('package_service')}> </div>
	</div>
	<div class="form-group">
		<div class="col-sm-2"></div>
		<div class="col-sm-8">
			<button type="button"  class="btn-primary btn border-radius-none btn-lg" onclick="$('#apply_scholarship_text').hide();$('#apply_scholarship').show();" >确定</button>
		</div>
	</div>
 

</form>

<form class="form-horizontal pd10" action="<{:U('User/apply_relearn')}>"  <if condition="!$apply['id']">style="display:none"</if>  method="post" id="apply_scholarship">
	<input type="hidden" name="subjectid" value="<{$subjectid}>" />
	 <php>$form_id=$apply?"apply_scholarship":''</php>
	<{:displayFormHtml("apply_relearn",$apply,$form_id)}>
	<div class="form-group">
	<div class="col-sm-2"></div>
	<div class="col-sm-8" >
	   <strong style=" color:red">
		<if condition="$apply['status'] eq 1"> 信息已经提交，等待审核 </if>
		<if condition="$apply['status'] eq 2"> 审核通过 </if>
		<if condition="$apply['status'] eq 3"> 审核不通过 </if>
	  </strong>	
		<p><{$apply.remark}></p>
	</div>	
	</div>
	<if condition="!$apply['id']">
		<div class="form-group">
		<div class="col-sm-2"></div>
		<div class="col-sm-8">
			<button  type="submit" class="btn-primary btn border-radius-none btn-lg" >提交</button>
		</div>
	</div>
	</if>

</form>
<script>
$(function(){
	$("#apply_scholarship")._bootstrapValidator({
    excluded: ':disabled',
    submitHandler: null,
    trigger: null,
    fields: {
            content: {
                validators: {
                     notEmpty: {
                        message: '请上传资料'
                    }
                }
            },
           
        }
});

 $("[name='content']").on("BoxUploadAdd",function(event){
		  $("#apply_scholarship").data('bootstrapValidator').updateStatus("content", 'NOT_VALIDATED', null).validateField("content");
   });
   
  $("[name='content']").on("BoxUploadDel",function(event){
          $("#apply_scholarship").data('bootstrapValidator').updateStatus("content", 'NOT_VALIDATED', null).validateField("content");
   });
   
   $("#apply_scholarship").on("ajaxSubmitSuccess",function(event){
		 $("#apply_scholarship").parents(".modal_popup ").modal("hide");
	})

})
</script>


 